<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>

    <?php
    $base_img = base_url() . "css/images/";
    ?>
    <title>Monitorovanie slovenských ciest</title>
    <style type="text/css">
        @import "<?= base_url();?>css/jquery.datepick.css";
    </style>


    <!-- // spolocne zac -->

    <link rel="stylesheet" type="text/css" href="<?= base_url();?>css/style.css">
    <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/themes/base/jquery-ui.css" rel="stylesheet"
          type="text/css"/>
    <link href='http://fonts.googleapis.com/css?family=Finger+Paint' rel='stylesheet' type='text/css'>
    <link type="text/css" href="<?= base_url();?>css/jquery.alerts.css" rel="stylesheet">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <script src="http://code.jquery.com/jquery-1.8.2.js"></script>
    <script src="http://code.jquery.com/ui/1.9.1/jquery-ui.js"></script>
    <script src="<?= base_url();?>js/jquery.alerts.js" type="text/javascript"></script>
    <script src="<?= base_url();?>js/markerclusterer.js" type="text/javascript"></script>
    <script src="<?= base_url();?>js/underscore-min.js" type="text/javascript"></script>
    <script type="text/javascript" src="https://www.google.com/jsapi"></script>
    <script src="http://code.highcharts.com/highcharts.js"></script>
    <script src="<?= base_url() ?>js/facebox.js" type="text/javascript"></script>
    <?php echo link_tag('css/facebox.css'); ?>

    <!-- // spolocne koniec -->

    <?php if ($this->uri->slash_segment(1) == "/") { ?>
    <!-- // boli v header zac -->

    <script type="text/javascript" src="<?= base_url();?>js/jquery.qtip-1.0.0.min.js"></script>
    <link href='http://fonts.googleapis.com/css?family=Rufina' rel='stylesheet' type='text/css'>
    <link href='http://fonts.googleapis.com/css?family=Monda' rel='stylesheet' type='text/css'>
    <script src="http://code.highcharts.com/modules/exporting.js"></script>
    <?php echo $map['js']; ?>
    <script src="<?= base_url() ?>js/header.js"></script>
    <!-- // boli v header koniec -->
    <?php } ?>

    <?php if ($this->uri->slash_segment(1) == "routes/") { ?>
    <!-- // routes koniec -->


    <script type="text/javascript"
            src="http://maps.google.com/maps/api/js?sensor=true&amp;libraries=places,geometry"></script>
    <script src="<?= base_url();?>js/js-dir.js" type="text/javascript"></script>
    <script type="text/javascript" src="<?= base_url();?>js/jquery.qtip-1.0.0.min.js"></script>
    <script type="text/javascript"> var CI = { 'base_url':'<?php echo base_url(); ?>' }; </script>
    <script src="<?= base_url();?>js/routes.js" type="text/javascript"></script>
    <!-- // routes koniec -->

    <?php } ?>

    <?php if ($this->uri->slash_segment(1) == "viewreports/") { ?>
    <?php echo $map['js']; ?>
    <script src="<?= base_url() ?>js/header.js"></script>
    <script type="text/javascript" src="<?= base_url();?>js/jquery.qtip-1.0.0.min.js"></script>
    <script type="text/javascript"> var CI = { 'base_url':'<?php echo base_url(); ?>' }; </script>
    <script type="text/javascript" src="<?= base_url();?>js/viewreports.js"></script>
    <?php } ?>

    <?php if ($this->uri->slash_segment(1) == "addreport/") { ?>
    <?php echo $map['js']; ?>

    <script type="text/javascript" src="<?= base_url();?>js/jquery.qtip-1.0.0.min.js"></script>
    <script type="text/javascript"> var CI = { 'base_url':'<?php echo base_url(); ?>' }; </script>
    <script src="<?= base_url() ?>js/addreport.js" type="text/javascript"></script>
    <?php } ?>

    <?php if ($this->uri->slash_segment(1) == "report/") { ?>
    <?php echo $map['js']; ?>

    <script type="text/javascript" src="<?= base_url();?>js/jquery.qtip-1.0.0.min.js"></script>
    <script type="text/javascript"> var CI = { 'base_url':'<?php echo base_url(); ?>' }; </script>
    <script src="<?= base_url() ?>js/reportInfo.js" type="text/javascript"></script>
    <?php } ?>

    <?php if ($this->uri->slash_segment(1) == "myprofile/") { ?>

    <script type="text/javascript" src="<?= base_url();?>js/jquery.qtip-1.0.0.min.js"></script>
    <script type="text/javascript"> var CI = { 'base_url':'<?php echo base_url(); ?>' }; </script>
    <script src="<?= base_url() ?>js/profile.js" type="text/javascript"></script>
    <?php } ?>

    <script type="text/javascript">    $(document).ready(function () {
        $('a[rel*=facebox]').facebox()
    }); </script>


</head>
<body id="body">

<div class="outerMain">
    <div class="main">
        <div class="header">


            <script>
                $(function () {

                    var msie6 = $.browser == 'msie' && $.browser.version < 7;

                    if (!msie6) {
                        var top = $('#comment').offset().top - parseFloat($('#comment').css('margin-top').replace(/auto/, 0));
                        $(window).scroll(function (event) {
                            // what the y position of the scroll is
                            var y = $(this).scrollTop();

                            // whether that's below the form
                            if (y >= top) {
                                // if so, ad the fixed class
                                $('#comment').addClass('fixed');
                            } else {
                                // otherwise remove it
                                $('#comment').removeClass('fixed');
                            }
                        });
                    }
                });
            </script>
            <div id="commentWrapper">
                <div id="comment">
                    <div class="login">

                        <?=
                        $this->load->view('login/loginmenu');
                        ?>

                    </div>
                </div>
            </div>
        </div>
        <div class="menu_time">
            <div class="menu">
                <ul class="css3menu">

                    <li><a href="<?php echo base_url(); ?>" class="home">Domov</a></li>
                    <li><a href="#" class="show">PREZERAŤ <img src="<?=$base_img?>arrow_down.png"
                                                               style="width: 15px;height:15px;vertical-align: middle;border:none;"/></a>
                        <ul>
                            <li><a href="<?= base_url();?>viewreports" class="typ">Udalosti podľa typu</a></li>
                            <!-- <li><a href="#" class="miesto">Udalosti podľa miesta</a></li> -->
                            <!-- <li><a href="#" class="zname-miesto">Známe lokácie</a></li> -->
                        </ul>
                    </li>

                    <li><a href="#" class="add">Pridať <img src="<?=$base_img?>arrow_down.png"
                                                            style="width: 15px;height:15px;vertical-align: middle;border:none;"/></a>
                        <ul>
                            <li><a href="<?= base_url();?>addreport" class="udalost">Udalosť do mapy</a></li>
                            <!-- <li><a href="<?= base_url();?>addreportfromlist" class="lokacia">Udalosť zo zoznamu</a></li> -->
                        </ul>
                    </li>
                    <li><a href="<?= base_url();?>routes/create" class="create_route">Vytvoriť cestu</a></li>
                </ul>

            </div>
        </div>


